import request from '@/server'

export const queryUserListApi = (data) => {
  return request.post({
    url: '/snsh/user/queryList',
    data
  })
}

export const addUserApi = (data) => {
  return request.post({
    url: '/snsh/user/save',
    data
  })
}

export const updateUserApi = (data) => {
  return request.post({
    url: '/snsh/user/update',
    data
  })
}

export const deleteUserApi = (params) => {
  return request.get({
    url: '/snsh/user/delete',
    params
  })
}

export const getOneselfApi = (params) => {
  return request.get({
    url: '/snsh/user/getOneself',
    params
  })
}
